
cmake_minimum_required(VERSION 3.4.1)

find_library( # Sets the name of the path variable.
              log-lib
              log )
set(FMOD_ARR ../../../../libs)
#添加预编译库
add_library( # Sets the name of the library.
             fmod
             SHARED
             IMPORTED )
set_target_properties(
    fmod
    PROPERTIES IMPORTED_LOCATION
    ${FMOD_ARR}/${ANDROID_ABI}/libfmod.so
)

add_library( # Sets the name of the library.
             fmodL
             SHARED
             IMPORTED )
set_target_properties(
    fmodL
    PROPERTIES IMPORTED_LOCATION
    ${FMOD_ARR}/${ANDROID_ABI}/libfmodL.so
)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")


add_library( # Sets the name of the library.
             mfmod
             SHARED
             src/main/cpp/fmod_single.cpp
             src/main/cpp/common.cpp
             )
include_directories(src/main/cpp/inc)

target_link_libraries( # Specifies the target library.
                       mfmod
                       fmod
                       fmodL
                       ${log-lib} )

